package www.test.com.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import www.test.com.config.MyFeignConfig;
import www.test.com.config.UserFallBack;
import www.test.com.entity.User;

import java.util.List;

@FeignClient(name = "provider",fallback = UserFallBack.class,configuration = MyFeignConfig.class)
public interface UserService {

    @RequestMapping("/testUser")
    String addUser();

    @RequestMapping("/findAll")
    List<User> findAll();

}
